package com.pzl.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.pzl.service.HelloWorld;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * HelloController class
 *
 * @Author panzhenglei
 * @Date 2019/6/17 19:30
 */

@Controller
@RequestMapping("/hello")
public class HelloController {

    @Reference
    private HelloWorld helloWorld;


    @RequestMapping("/say.do")
    @ResponseBody
    public String helloWorld(String name){
    return helloWorld.helloWorld(name);
    }
}
